package com.han.fu.api.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.han.fu.api.business.entity.Comment;
import com.han.fu.api.business.model.ao.CommentPageAo;
import com.han.fu.api.business.model.vo.CommentVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * 评论Mapper接口
 *
 * @author star
 * @date 2021-08-05
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    /**
     * 评论分页查询
     *
     * @param ao 分页查询条件
     * @return Page<CommentVo> 分页数据
     */
    Page<CommentVo> queryCommentNewsPage(CommentPageAo ao);

    /**
     * 评论回复分页查询
     *
     * @param ao 分页查询条件
     * @return Page<CommentVo> 分页数据
     */
    Page<CommentVo> queryCommentReplyPage(CommentPageAo ao);
}
